package cn.yq.spring.test;

import static org.junit.Assert.assertNotNull;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.yq.spring.dao.UserMapper;
import com.yq.spring.entity.User;

public class Demo extends BastTest{
	@Autowired
	private UserMapper userMapper;
	
	@Test
	public void index(){
		User user = new User();
		user.setId("6");
		user.setName("123");
		userMapper.insert(user);
		assertNotNull(user);
		
		
	}

}
